﻿using System;
using Ue.CQRS.Events;

namespace Ue.CQRS.DistributionManager
{
    public class DispatchEventArgs: EventArgs
    {
        public DispatchEventArgs(dynamic domainEvent, Action handler)
        {
            this.Event = domainEvent;
            this.Handler = handler;
        }

        public IEvent Event { get; private set; }

        public Action Handler { get; private set; }
    }
}
